//
//  UIBarButtonItem+Extension.m
//  weibo
//
//  Created by qiuming on 15/12/22.
//  Copyright © 2015年 qiuming. All rights reserved.
//

#import "UIBarButtonItem+Extension.h"
#import "UIButton+Extension.h"

@implementation UIBarButtonItem (Extension)


+ (instancetype)barButtonWithTitle:(NSString *)title imageName:(NSString *)imageName target:(id)target action:(SEL)action {
    
    UIButton *btn = [UIButton buttonWithTitle:title imageName:imageName target:target action:action];
    
    return [[self alloc]initWithCustomView:btn];

}






@end
